package Datastruct.Linked;

public class BookNode {

    public  int id;
    public  String name;
    public   double price;

    //前驱
    public  BookNode pre;

    //后继
    public  BookNode next;


    public BookNode(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    // TODO: 2022/7/18

    @Override
    public String toString() {
        return "BookNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", pre=" + pre +

                '}';
    }
}
